home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 11420 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: midland.co.nz!usenet
  2. From: jsev@midland.co.nz (John Severinsen)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: Amigados - checking for a file
  5. Date: 8 Apr 1996 10:43:18 GMT
  6. Organization: Midland Internet Limited, Network Services
  7. Message-ID: <840.6672T1024T281@midland.co.nz>
  8. References: <401.6670T240T431@nibelung.demon.co.uk>
  9. NNTP-Posting-Host: jsev.midland.co.nz
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12. On 06-Apr-96 15:03:48 (Msg ID: <401.6670T240T431@nibelung.demon.co.uk>), Barry
  13. Shilliday wrote:
  14. --
  15.  
  16. >What would be the format to check the existence of a file in a script for
  17. >dos? I would have thought something like this:
  18.  
  19. >If EXISTS blah:filename
  20. >  dowhatever
  21. >  else
  22. >   dothatinstead
  23. >   endif
  24. >endif
  25.  
  26. >but this doesn't work.
  27.  
  28. Apart from an extra endif, it looks fine.  The following works here:
  29.  
  30. if exists blah:filename
  31.   echo "Found it"
  32. else
  33.   echo "Missing"
  34. endif
  35.  
  36.  
  37.  
  38.  
  39.  
  40. --
  41.     /// *           |One Ring to rule them all, One Ring to find them
  42.  __/// **           |One Ring to bring them all and in the darkness bind them
  43.  \XX/ * *miga       |In the land of Mordor where Shadows lie
  44.                     |
  45.  John Severinsen    |- J.R.R. Tolkien
  46.  jsev@midland.co.nz |
  47. <tsb>Thor 2.22, 08-Apr-96 17:02:11
  48.  
  49. Denial - A large river in Egypt.
  50.  
  51.